﻿@using FFF.Test.Entity.FW.View;
@using Microsoft.AspNetCore.Http;
@{
    ViewData["Title"] = "微信支付订单表创建界面";
    Layout = null;
    ViewFWUser currentUserInfo = base.Context.Session.GetUserInfo();
}
 <input type="hidden" id="uuid" name="id">


<div data-toggle="topjui-layout" data-options="fit:true">
    <div data-options="region:'center',title:'',fit:true,border:false,bodyCls:'border_right_bottom'">
        <div data-toggle="topjui-tabs" data-options="fit:true,border:false">
            <div title="@L("基本信息")" data-options="iconCls:'fa fa-th'">
                <div class="topjui-fluid">
                    <fieldset>
                        <legend>@L("基本信息")</legend>
                    </fieldset>
                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("微信分配的公众账号ID")</label>
                            <div class="topjui-input-block">
                                <input id="myFormAppId" type="text" name="appId" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label"> @L("微信支付分配的商户号(1230000109)")</label>
                            <div class="topjui-input-block">
                                <input type="hidden" id="myFormMchIdName" name="mchIdName" />
                                <input id="myFormMchId" type="text" name="mchId" data-toggle="topjui-combobox" 
                                       data-options="required:false,
                                editable: true,
                                valueField:'id',
                                textField:'text',
                                loader: $.loader.comboxLoader,
                                mode: 'remote',
                                queryParams:
                                {
                                    viewName:'View_',
                                    comBoxValueName:'MchIdName', 
                                    initQuery:$('#myFormMchIdName').val(),
                                    order:'mchId desc',
                                    idField:'mchId',
                                }">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("小程序的APPID")</label>
                            <div class="topjui-input-block">
                                <input id="myFormSubAppId" type="text" name="subAppId" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("子商户号")</label>
                            <div class="topjui-input-block">
                                <input id="myFormSubMchId" type="text" name="subMchId" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("设备号")</label>
                            <div class="topjui-input-block">
                                <input id="myFormDeviceInfo" type="text" name="deviceInfo" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("随机字符串")</label>
                            <div class="topjui-input-block">
                                <input id="myFormNonceStr" type="text" name="nonceStr" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("签名")</label>
                            <div class="topjui-input-block">
                                <input id="myFormSign" type="text" name="sign" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("签名类型（签名类型，目前支持HMAC-SHA256和MD5，默认为MD5）")</label>
                            <div class="topjui-input-block">
                                <input id="myFormSignType" type="text" name="signType" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("商品描述（商品简单描述，该字段须严格按照规范传递）")</label>
                            <div class="topjui-input-block">
                                <input id="myFormBody" type="text" name="body" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("商品详情")</label>
                            <div class="topjui-input-block">
                                <input id="myFormDetail" type="text" name="detail" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("附加数据")</label>
                            <div class="topjui-input-block">
                                <input id="myFormAttach" type="text" name="attach" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("商户订单号")</label>
                            <div class="topjui-input-block">
                                <input id="myFormOutTradeNo" type="text" name="outTradeNo" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("货币类型")</label>
                            <div class="topjui-input-block">
                                <input id="myFormFeeType" type="text" name="feeType" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("总金额")</label>
                            <div class="topjui-input-block">
                                <input id="myFormTotalFee" type="text" name="totalFee" data-toggle="topjui-numberbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("终端IP（支持IPV4和IPV6两种格式的IP地址。调用微信支付API的机器IP）")</label>
                            <div class="topjui-input-block">
                                <input id="myFormSpbillCreateIp" type="text" name="spbillCreateIp" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("交易起始时间")</label>
                            <div class="topjui-input-block">
                                <input id="myFormTimeStart" type="text" name="timeStart" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("交易结束时间")</label>
                            <div class="topjui-input-block">
                                <input id="myFormTimeExpire" type="text" name="timeExpire" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("订单优惠标记")</label>
                            <div class="topjui-input-block">
                                <input id="myFormGoodsTag" type="text" name="goodsTag" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("通知地址")</label>
                            <div class="topjui-input-block">
                                <input id="myFormNotifyUrl" type="text" name="notifyUrl" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("交易类型")</label>
                            <div class="topjui-input-block">
                                <input id="myFormTradeType" type="text" name="tradeType" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("指定支付方式no_credit--指定不能使用信用卡支付")</label>
                            <div class="topjui-input-block">
                                <input id="myFormLimitPay" type="text" name="limitPay" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("用户标识")</label>
                            <div class="topjui-input-block">
                                <input id="myFormOpenId" type="text" name="openId" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("用户子标识")</label>
                            <div class="topjui-input-block">
                                <input id="myFormSubOpenid" type="text" name="subOpenid" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("电子发票入口开放标识（ Y，传入Y时，支付成功消息和支付详情页将出现开票入口。需要在微信支付商户平台或微信公众平台开通电子发票功能，传此字段才可生效）")</label>
                            <div class="topjui-input-block">
                                <input id="myFormReceipt" type="text" name="receipt" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("场景信息（该字段常用于线下活动时的场景信息上报，支持上报实际门店信息，商户也可以按需求自己上报相关信息。该字段为JSON对象数据，对象格式为{'store_info':{'id': '门店ID','name': '名称','area_code': '编码','address': '地址' }} ，字段详细说明请点击行前的+展开）', Description = '场景信息（该字段常用于线下活动时的场景信息上报，支持上报实际门店信息，商户也可以按需求自己上报相关信息。该字段为JSON对象数据，对象格式为{'store_info':{'id': '门店ID','name': '名称','area_code': '编码','address': '地址' }} ，字段详细说明请点击行前的+展开）")</label>
                            <div class="topjui-input-block">
                                <input id="myFormSceneInfo" type="text" name="sceneInfo" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("返回状态码")</label>
                            <div class="topjui-input-block">
                                <input id="myFormReturnCode" type="text" name="returnCode" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("返回信息")</label>
                            <div class="topjui-input-block">
                                <input id="myFormReturnMsg" type="text" name="returnMsg" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("预支付交易会话标识（微信生成的预支付回话标识，用于后续接口调用中使用，该值有效期为2小时）")</label>
                            <div class="topjui-input-block">
                                <input id="myFormPrepayId" type="text" name="prepayId" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("二维码链接（trade_type=NATIVE时有返回，此url用于生成支付二维码，然后提供给用户进行扫码支付。）")</label>
                            <div class="topjui-input-block">
                                <input id="myFormCodeUrl" type="text" name="codeUrl" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("微信订单号")</label>
                            <div class="topjui-input-block">
                                <input id="myFormTransactionId" type="text" name="transactionId" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("商户退款单号")</label>
                            <div class="topjui-input-block">
                                <input id="myFormOutRefundNo" type="text" name="outRefundNo" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("申请退款金额")</label>
                            <div class="topjui-input-block">
                                <input id="myFormRefundFee" type="text" name="refundFee" data-toggle="topjui-numberbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("退款原因")</label>
                            <div class="topjui-input-block">
                                <input id="myFormRefundDesc" type="text" name="refundDesc" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("退款资金来源")</label>
                            <div class="topjui-input-block">
                                <input id="myFormRefundAccount" type="text" name="refundAccount" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("是否关注公众账号")</label>
                            <div class="topjui-input-block">
                                <input id="myFormIsSubscribe" type="text" name="isSubscribe" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("是否关注公众账号")</label>
                            <div class="topjui-input-block">
                                <input id="myFormSubIsSubscribe" type="text" name="subIsSubscribe" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("微信支付状态 SUCCESS—支付成功 REFUND—转入退 NOTPAY—未支付 CLOSED—已关闭 REVOKED—已撤销（刷卡支付） USERPAYING--用户支付中 PAYERROR--支付失败")</label>
                            <div class="topjui-input-block">
                                <input id="myFormTradeState" type="text" name="tradeState" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("支付状态")</label>
                            <div class="topjui-input-block">
                                <input type="text" name="payOrderState" id="myFormPayOrderState"
                                       data-toggle="topjui-combobox"
                                       data-options="
                               valueField:'value',
                               url:'/api/services/app/Enum/GetEnumArray',
                               queryParams:{'enumTypeName':'WXPayOrderPayOrderStateEnum','module':'WX'},
                                        ">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("支付失败消息")</label>
                            <div class="topjui-input-block">
                                <input id="myFormPayOrderError" type="text" name="payOrderError" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

             
                </div>
            </div>
            @if (!string.IsNullOrEmpty(base.Context.Request.Query["uuid"]))
            {
                 @*<div title="@L("Iframe展示")" data-options="iconCls:'fa fa-th',border:true,iframe:true,disabled:false,
                        content:'<iframe src=\'/WX/ProTaskDelay/ProTaskDelayIndex?payOrderGUID=@(base.Context.Request.Query["uuid"])&&mode=@(base.Context.Request.Query["mode"])\' scrolling=\'auto\' frameborder=\'0\' style=\'width:100%;height:96%;\'></iframe>'">
                </div>*@
            }
            @*<div title="@L("选填信息")" data-options="iconCls:'fa fa-th'">
                    <div class="topjui-fluid">
                        <fieldset>
                            <legend>@L("扩展信息")</legend>
                        </fieldset>
                    </div>
                </div>*@
        </div>
    </div>
</div>

